package com.pv.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pv.common.utils.PageUtils;
import com.pv.common.utils.Query;
import com.pv.common.entity.PageRequest;

import com.pv.user.dao.RooftopDao;
import com.pv.user.entity.RooftopEntity;
import com.pv.user.service.RooftopService;


@Service("rooftopService")
public class RooftopServiceImpl extends ServiceImpl<RooftopDao, RooftopEntity> implements RooftopService {

    @Override
    public PageUtils queryPage(PageRequest request) {

        LambdaQueryWrapper<RooftopEntity> wrapper = new LambdaQueryWrapper<>();
        IPage<RooftopEntity> page = this.page(
                request.toMybatisPage(),
               wrapper
        );

        return new PageUtils(page);
    }

}